package com.pxxy.mall.product.feign;

import com.pxxy.common.to.SpuBoundTO;
import com.pxxy.common.to.SkuReductionTO;
import com.pxxy.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author zhangjianjian
 */
@FeignClient(name = "mall-coupon")
public interface CouponFeignApi {


    /**
     * 保存积分
     * @param reqDTO
     * @return
     */
    @PostMapping("/coupon/spubounds/save")
    R saveSpuBound(@RequestBody SpuBoundTO reqDTO);

    /**
     * 保存商品满减信息
     * @param skuReductionTO
     * @return
     */
    @PostMapping("/coupon/skufullreduction/saveReduction")
    R saveSkuReduction(@RequestBody SkuReductionTO skuReductionTO);





}
